Method and apparatus for generating and playing animated message

ABSTRACT

Methods and apparatus are provided for generating an animated message. Input objects in an image of the animated message are recognized, and input information, including information about an input time and input coordinates for the input objects, is extracted. Playback information, including information about a playback order of the input objects, is set. The image is displayed in a predetermined handwriting region of the animated message. An encoding region, which is allocated in a predetermined portion of the animated message and in which the input information and the playback information are stored, is divided into blocks having a predetermined size. Display information of the encoding region is generated by mapping the input information and the playback information to the blocks in the encoding region. An animated message including the predetermined handwriting region and the encoding region is generated. The generated animated message is transmitted.

PRIORITY

This application is a National Phase Entry of PCT International Application No. PCT/KR2011/002656, which was filed on Apr. 14, 2011, and claims priority to Korean patent Application Serial No. 10-2010-0034814, which was filed in the Korean Intellectual Property Office on Apr. 15, 2010, the entire contents of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to a message service for a mobile communication terminal, and more particularly, to a method and apparatus for generating and playing an animated message, in which handwritten information entered by a user on a touch screen or an image captured by a camera may be animated.

2. Description of the Related Art

The capabilities of mobile terminals have been significantly enhanced by developments in technologies such as wired/wireless communication technology, multimedia technology, power charging technology, and in manufacturing technology for hardware, such as Central Processing Units (CPUs) and memories. For example, while the early mobile terminals send information to another terminal using voice calls, improved mobile terminals, which are capable of exchanging text messages, may send simple information using Short Message Service (SMS) messages, which include simple text information, when voice calls are unavailable or undesirable.

SMS has evolved into Long Message Service (LMS), which is capable of including long-text information, and Multimedia Message Service (MMS), which is capable of including multimedia files, such as images and videos. Unlike SMS and LMS, which only send text information, user demand for MMS has dramatically increased because of its scalability of expression.

The current MMS only sends stored images. Therefore, when a user wants to send handwritten information using MMS, a sender (or a sending terminal) must convert the handwritten information into an image file using a separate application, store the image file, and then send the stored image file. The handwritten information is converted into a single still image, showing only the handwritten results without reflecting the input sequence of the information for the handwriting.

Therefore, when MMS having the image file with the handwritten information is received at a recipient, the image is viewed as a single still image. The reception of a still image makes it impossible to sequentially express the order in which the sender created the handwritten information, and causes difficulty in delivering handwriting action information or emotional state information of the sender.

SUMMARY OF THE INVENTION

The present invention has been made to address at least the above problems and/or disadvantages and to provide at least the advantages described below. Accordingly, an aspect of the present invention provides a method and apparatus for generating and playing an animated message, in which handwritten input information entered by a user on a touch screen is generated as a message, and the generated message may be played in an animated manner according to the input order of objects or the order arbitrarily set by the user.

Another aspect of the present invention provides a method and apparatus for generating an animated message by extracting objects from an image captured by a camera, and playing the animated message in an animated manner.

A further aspect of the present invention provides a method and apparatus for generating an animated message by creating and storing handwritten input information entered by a user on a frame basis, and playing the animated message in an animated manner.

In accordance with one aspect of the present invention, a method is provided for generating an animated message. One or more input objects in an image used for generating the animated message are recognized, and input information, including information about an input time and input coordinates for each of the one or more input objects, is extracted. Playback information, including information about a playback order of the one or more input objects, is set. The image is displayed in a predetermined handwriting region of the animated message. An encoding region, which is allocated in a predetermined portion of the animated message and in which the input information and the playback information are stored, is divided into a plurality of blocks having a predetermined size. Display information of the encoding region is generated by mapping the input information and the playback information to each of the plurality of blocks in the encoding region. An animated message including the predetermined handwriting region and the encoding region is generated. The generated animated message is transmitted.

In accordance with another aspect of the present invention, a method is provided for playing an animated message. An animated message that includes input information, including information about an input time and input coordinates of each of a plurality of objects of an animation to be played, and playback information, including information about a playback order of the plurality of objects, is received. An image in a handwriting region of the received animated message is extracted. Bit values mapped according to gray values of respective blocks in an encoding region of the received animated message are extracted. The input information and the playback information of each of the plurality of objects in the animated message are generated according to the extracted bit values. The animated message is played according to the input information and the playback information.

In accordance with another aspect of the present invention, an apparatus is provided for generating and playing an animated message. The apparatus includes an input unit for receiving a handwritten input from a user, an output unit for playing and displaying an animated message, and a radio communication unit for transmitting and receiving the animated message. The apparatus also includes a controller for recognizing one or more input objects in an image used for generating the animated message, and extracting input information, including information about an input time and input coordinates of each of the one or more input objects, setting playback information including information about a playback order of the one or more input objects, displaying the image in a predetermined handwriting region of the animated message, dividing an encoding region, which is allocated in a predetermined portion of the animated message and in which the input information and the playback information are stored, into a plurality of blocks having a predetermined size, generating display information of the encoding region by mapping the input information and the playback information to each of the plurality of blocks in the encoding region, and generating an animated message including the predetermined handwriting region and the encoding region.

In accordance with a further aspect of the present invention, a method is provided for generating an animated message. An image to be played on a frame basis during playback of an animated message is received. A predetermined encoding region of the animated message is divided into a plurality of blocks having a predetermined size. Display information of the encoding region is generated by mapping input information for the image entered on a frame basis to each block in the encoding region. The animated message including the encoding region is generated. The generated animated message is transmitted.

In accordance with yet another aspect of the present invention, a method is provided for playing an animated message. The animated message including information about an image associated with an individual frame for an animation to be played is received. Bit values mapped according to gray values of respective blocks in an encoding region of the received animated message are extracted. Information about the image entered on a frame basis from the animated message is extracted according to the extracted bit values. The image entered on the frame basis is played using the extracted information.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features and advantages of the present invention will be more apparent from the following detailed description when taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram illustrating an apparatus for generating and playing an animated message, according to an embodiment of the present invention;

FIG. 2 is a diagram illustrating input objects in an animated message, according to an embodiment of the present invention;

FIG. 3 is a diagram illustrating playback information of each object in an animated message, according to an embodiment of the present invention;

FIG. 4 is a diagram illustrating a playlist of objects in an animated message, according to an embodiment of the present invention;

FIG. 5 is a diagram illustrating a list of objects to be drawn and a list of objects to be erased for the frames in the playlist of FIG. 4, according to an embodiment of the present invention;

FIG. 6 is a diagram illustrating the playing of an animated message based on the playlist of FIG. 4, according to an embodiment of the present invention;

FIG. 7 is a diagram illustrating another playlist of objects in an animated message, according to an embodiment of the present invention;

FIG. 8 is a diagram illustrating a method for displaying a screen on a playback frame basis in playing an animated message associated with the playlist of FIG. 7, according to an embodiment of the present invention;

FIG. 9 is a flowchart illustrating a method for generating an animated message, according to an embodiment of the present invention;

FIG. 10 is a flowchart illustrating a method for extracting object information from a captured image, according to an embodiment of the present invention;

FIG. 11 is a diagram illustrating an operation of generating input images on a frame basis, according to an embodiment of the present invention;

FIG. 12 is a diagram illustrating a data structure of input images, according to an embodiment of the present invention; and

FIG. 13 is a diagram illustrating an animated message, according to an embodiment of the present invention.

DETAILED DESCRIPTION OF EMBODIMENTS OF THE PRESENT INVENTION

Embodiments of the present invention are described in detail with reference to the accompanying drawings. The same or similar components may be designated by similar reference numerals although they are illustrated in different drawings. Detailed descriptions of constructions or processes known in the art may be omitted to avoid obscuring the subject matter of the present invention.

The present invention provides a method and apparatus for generating and playing an animated message, in which handwritten information entered by a user on a touch screen is generated as a message, and the generated message may be played in an animated manner according to the input order of objects or an order arbitrarily set by the user.

In addition, the present invention provides a method and apparatus for generating and playing an animated message, in which objects are extracted from an image captured by a camera and playback information, including the playback order of the extracted objects, is set to play the animated message in an animated manner.

Furthermore, the present invention provides a method and apparatus for generating an animated message by creating and storing handwritten input information entered by a user on a frame basis, and for playing the animated message in an animated manner.

The present invention also provides a method and apparatus for separately setting or defining an encoding region in an animated message and delivering handwritten input information using the encoding region.

FIG. 1 illustrates an apparatus for generating and playing an animated message, according to an embodiment of the present invention.

Referring to FIG. 1, the apparatus for generating and playing an animated message includes a radio communication unit 110, an input unit 120, an output unit 130, a storage unit 140, a controller 150, a camera unit 170, and an image processor 160.

The radio communication unit 110 performs communication over a mobile communication network. In an embodiment of the present invention, the radio communication unit 110 transmits and receives animated messages, including individual playback information for objects.

The input unit 120 receives input from a user. The output unit 130 displays output information under the control of the controller 150. In an embodiment of the present invention, the input unit 120 and the output unit 130 may be realized as a single touch screen. The input unit 120 receives handwritten inputs entered by the user and transfers the received handwritten inputs to the controller 150. The output unit 130 plays animated messages under the control of the controller 150.

The storage unit 140 stores information for operations of the animated message generating and playing apparatus. In an embodiment of the present invention, the storage unit 140 stores images captured by the camera unit 170 and animated messages received from or to be sent to external devices.

The camera unit 170, which includes a lens and an image sensor, provides images captured by photographing subjects to the image processor 160.

The image processor 160 receives an image captured by the camera unit 170, and extracts point data from the received image to extract object information. The image processor 160 may extract object information from images stored in the storage unit 140.

In accordance with an embodiment of the present invention, the image processor 160 includes an automatic object region extracting unit, an object region correction unit, and a point data extracting and animation effect extracting unit.

In an embodiment of the present invention, the image processor 160 identifies color information of the central region of an image captured by the camera unit 170, extracts edge information of the central region, and separates and extracts the central interested region based on the color information and edge information of the central region of the image. The image processor 160 extracts contour information of an object in the rectangular central region to extract the object, by performing region growing on a region(s) having a color that is similar to that of the extracted interested region. The image processor 160 then detects corners by extracting boundaries of the extracted object, and performs affine transform on the extracted object. The image processor 160 extracts an object by binarizing an image and separating the object from the background, and creates an input time of the extracted object.

The region growing, which is a method used for region segmentation in image processing, grows regions having the same feature, little by little, to divide the regions. In the region growing, the similarity between the regions may be determined depending on, for example, brightness, colors, and/or gradients, of related pixels.

The affine transform is a linear geometric transform achieved by one or more of scaling, rotation and translation.

The controller 150 controls the components of the animated message generating and playing apparatus. In an embodiment of the present invention, the controller 150 includes an animated message generator 151 for generating animated messages using handwritten input information that is created using the input unit 120. The controller also includes and an animated message processor 152 for decoding animated messages received from the radio communication unit 110, and playing the decoded animated messages.

The animated message generator 151 receives handwritten input (or an event) entered from the input unit 120, and extracts input information, including information about an input time and input coordinates, from the received handwritten input. The animated message generator 151 distinguishes input objects according to their input information, and sets playback information, including information about the playback order of the input objects. The animated message generator 151 then encodes the input information and the set playback information of the input objects. The encoding is performed in a lossless compression or non-compression manner by creating one or more codes and encoding input information and individual playback information of objects. The created one or more codes are then used in a recipient (or a receiving terminal) to play an animated message according to the sequential input information. Additional information, including information about a terminal generating an animated message, a generation time, an application used, and an encoding method, may be created as one or more codes, and the created one or more codes may be included in the animated message. The encoded one or more codes are mapped and converted into an image according to the pixel values of one or more pixels in an encoding region of an animated message. This image is compressed in an image format, such as, for example, Joint Photographic coding Experts Group (JPEG).

The term ‘input information’, as used herein, refers to information about an input first entered by a user, and represents information about the first input time and input coordinates, and information including at least one of an input order of handwriting strokes, attributes of handwriting strokes, and input colors of handwriting strokes, among the input handwritten information.

The term ‘object’, as used herein, refers to distinguishable individual information such as a handwriting stroke, a shape, an image, and a character, among the information entered through the input unit 120.

The term ‘playback information’, as used herein, refers to information that can be arbitrarily set by a user, and includes at least one of an input order indicating the order in which an object is entered, a region location indicating location information of an object, a timeline number indicating a unique number of a reference time axis along which animation is played, a repetition indicator which is a flag indicating whether an object is to be repeatedly displayed, a duration indicator indicating a unit time, and a duration indicating a time for which an object is displayed on a screen.

In an embodiment of the present invention, the animated message generator 151 in the controller 150 displays an input handwritten image in a predetermined handwriting region of an animated message. The animated message generator 151 allocates an encoding region used for storing input information, playback information of objects, and/or information about frame images, to a predetermined portion of the animated message. The animated message generator 151 divides the encoding region into a plurality of blocks having a predetermined size. The animated message generator 151 generates display information of the encoding region by mapping the input information, the playback information of objects, and/or the information about frame images, to the blocks of the encoding region of the animated message. The animated message generator 151 generates the animated message including the handwriting region and the encoding region.

The encoding region is located under the handwriting region, and includes a signature region used to display a signature and having a predetermined size. The signature region includes information set by a user, information provided in advance, or advertisements of the communication service provider. Vertical and horizontal sizes of the signature region are each set to a multiple of 16, and a horizontal position and a vertical position, which are measured as coordinates from a top-left starting position of the signature region, are also set to a multiple of 16.

In generating display information of a predetermined encoding region by mapping input information and playback information to blocks of the encoding region of an animated message, the animated message generator 151 converts playback information of objects and input information of an image into one or more codes, and maps values of the one or more codes to the blocks of the encoding region. This conversion and mapping changes the levels of gray values of the blocks according to the bit values of the code values during display. The gray values may be expressed in 4 levels capable of displaying 2-bit values, or in 8 levels capable of displaying 3-bit values.

The animated message generator 151 encodes input information of the handwriting region and playback information of objects, and includes the encoded information in the encoding region. The input information and the playback information are converted into one or more code values in the controller 150, and the code values are expressed as gray values of blocks or pixels in the encoding region. To reduce the distortion in JPEG encoding and a communication network, the operation of encoding an encoding region divides a color of each block into K levels using gray values of colors of the blocks in the handwriting region. Independent bit values are allocated to the levels. Therefore, by allocating a value of one or more bits to each pixel or block in encoding, the amount of data may be ensured. For example, when gray values of 0˜255 are divided into 4 levels of 0, 48, 96, and 144, the 4 levels may be allocated 2-bit values of 00, 01, 10, and 11, respectively. When the gray values are divided in 8 levels of 0, 32, 64, 96, 128, 160, 192, and 224, the 8 levels may be allocated 3-bit values of 000, 001, 010, 011, 100, 101, 110, and 111, respectively.

In an embodiment of the present invention, the animated message generator 151 extracts input information including information about an input time and input coordinates of each object in an image. The animated message generator 151 sets playback information including information about a playback order for each object, and displays the image in a predetermined handwriting region of an animated message. The animated message generator 151 generates display information of an encoding region by mapping the input information and the playback information to blocks in the encoding region used for storing the input information and the playback information, and generates the animated message including the handwriting region and the encoding region.

In an embodiment of the present invention, the animated message generator 151 generates an image by receiving handwritten input from a user through a touch screen, and extracts input information, including information about an input time and input coordinates, for each object in the generated image.

The animated message generator 151 converts the input information into one or more code values, and maps the one or more code values to blocks in the encoding region, to change levels of gray values of the blocks according to the bit values of the code values during display. The gray values may be expressed in 4 levels capable of displaying 2-bit values, or in 8 levels capable of displaying 3-bit values.

In another embodiment of the present invention, the animated message generator 151 receives an image to be played in each frame during playback of an animated message. The animated message generator 151 divides a predetermined encoding region of the animated message into a plurality of blocks having a predetermine size. The animated message generator 151 generates display information of the encoding region by mapping input information for the image received for each frame to the blocks in the encoding region, and generates the animated message including the encoding region.

The input information for the image received for each frame includes only a difference between the previous frame and the current frame of the image, and includes information generated and stored by simplifying information about objects in the image received for each frame.

Upon receiving an animated message through the radio communication unit 110, the animated message processor 152 decodes the received animated message to play the animated message. The animated message processor 152 performs an operation opposite to that of the animated message generator 151. The animated message processor 152 decompresses the compressed image in the received animated message, and reads pixel values from an encoding region in units of a predetermined number of pixels. The animated message processor 152 extracts code values of playback information and input information for each object in the animated message. The extracted code values are mapped to the pixel values. The animated message processor 152 restores playback information and the input information for each object by decoding codes of playback information of the next object. The animated message processor 152 controls the output unit 130 to play the animated message according to the restored playback information and input information for each object.

Upon receiving an animated message, the animated message processor 152 in the controller 150 extracts a handwritten image in a handwriting region of the received animated message, and extracts bit values mapped according to the gray values of blocks in an encoding region of the received animated message. The animated message processor 152 generates input information, including information about an input time and input coordinates of an input image in the animated message, and playback information, including information about a playback order for each object, according to the extracted bit values. The animated message processor 152 plays the animated message according to the input information and playback information in the animated message.

In accordance with another embodiment of the present invention, upon receiving an animated message, the animated message processor 152 extracts bit values mapped according to the gray values of blocks in an encoding region of the received animated message. The animated message processor 152 extracts information about an image received for each frame of the animated message according to the extracted bit values, and plays the image received for each frame using the extracted information.

A handwriting region of an animated message may be set as a 240×240 region, and a 240×80 region under the handwriting region may be used as an encoding region. The encoding region may be set above, around, or partially above and below the handwriting region. In order not to be affected by JPEG color distortion, the encoding region is set to have a size that is a multiple of 16×16 and equal to a macro block, and is set to have a starting position that is a multiple of 16×16.

A method for setting individual playback information of objects in generating an animated message according to an embodiment of the present invention is described in detail below. FIG. 2 is a diagram illustrating input objects in an animated message, according to an embodiment of the present invention. As illustrated in FIG. 2, it is assumed that six objects 21, 22, 23, 24, 25, and 26 were sequentially entered through handwriting input of a user.

The ‘object’, as used herein, refers to unit identities distinguishable in or extractable from an image, such as free handwriting (i.e., a stroke), a shape (i.e., a rectangle or a circle), an image (i.e., a stamp or a picture), text (i.e., a character, etc.), which are input by the user, or extracted from the image.

Regarding the objects 21, 22, 23, 24, 25, and 26, input information, such as an input time, point coordinates, and a color, may be stored for each object, and playback information for playing an animation using an animated message may be individually set for each object.

The animated message may be played using a sequential playback method in which objects are played in their input order, a random playback method in which objects are played according to a random playback order regardless of the input order, and a directional playback method in which objects are sequentially played after being rearranged, by referring to their region locations.

FIG. 3 is a diagram illustrating playback information of each object in an animated message, according to an embodiment of the present invention.

As illustrated in FIG. 3, playback information of each input object is configured to include an input order 310, indicating the order in which an object is entered, a region location 320, indicating location information of an object, a timeline number 330, indicating a unique number of a reference time axis along which animation is played, a repetition indicator 340, which is a flag indicating whether an object is to be repeatedly displayed, a duration indicator 350, indicating a unit time (e.g., a frame or an object), and a duration 360, indicating a time during which an object is displayed on a screen.

Playback information values associated with animation effects are provided below in Table 1.

TABLE 1 Animation Repetition Effect Indicator Duration Description Continuously 0 −1 Displayed in an N-th frame Displayed (not erased) Disappear 0 10 Displayed in an N-th frame (erased after after a lapse of 10 frames, i.e., in Displayed an (N + 10)-th frame) Repeatedly 1 2 Displayed in an N-th frame (erased Displayed after a lapse of 2 frames, i.e., in an (N + 2)-th frame, and displayed again after a lapse of 2 frames, i.e., in an (N + 4)-th frame on a repeated basis.

FIG. 4 is a diagram illustrating an example of a playlist of objects in an animated message, according to an embodiment of the present invention. The playlist of the objects shown in FIG. 2 is used as an example for this embodiment.

Referring to FIG. 4, the objects 21 and 26 both have a repetition indicator of 0 and a duration of −1, meaning that, as illustrated in Table 1, they are displayed in associated frames #1 and #6, and then continuously displayed without being erased or closed. The object 22 is displayed once over 3 frames starting at a frame #2, because its duration is 3 and its repetition indicator is 0. The objects 23 and 24 are repeatedly displayed during one frame after being displayed in associated frames #3 and #4 because their duration is 1 and their repetition indicator is 1. The object 25 disappears after being displayed in a frame #5 during one frame, because its duration is 1 and its repetition indicator is 0.

FIG. 5 illustrates a list of objects to be drawn and a list of objects to be erased for the frames in the playlist of FIG. 4, according to an embodiment of the present invention.

As illustrated in FIG. 5, the list of objects to be drawn includes unique numbers in playback frames, and the list of objects to be erased includes unique numbers in playback frames.

The animated message processor 152 generates an object playlist using playback information of objects, which it has extracted from an animated message. The animated message processor 152 generates a list of objects to be drawn and a list of objects to be erased, as shown in FIG. 5, according to the object playlist (playback information), and plays the animated message using the list of objects to be drawn and the list of objects to be erased.

FIG. 6 illustrates the playing of an animated message based on the playlist of FIG. 4, according to an embodiment of the present invention.

Referring to FIG. 6, the animated message processor 152 plays animation by drawing or erasing objects in playback frames based on the list of objects to be drawn and the list of objects to be erased. Specifically, the object 21 is drawn in a first frame 601, the object 22 is drawn in a second frame 602, and the object 23 is drawn in a third frame 603. Thereafter, in a fourth frame 604, the object 23 is erased and the object 24 is drawn. In a fifth frame 605, the object 24 is erased and the objects 23 and 25 are drawn. In a sixth frame 606, the objects 23 and 25 are erased and the objects 24 and 26 are drawn. This animation is played according to the playback information set in the objects.

When the objects are free handwriting (strokes), during playback of a stroke, the entire stroke is not drawn in one frame at once, but the stroke may be divided into a set of points, and then drawn over several frames.

When an object needs to be played over several frames, whether the duration corresponds to a ‘frame’ or to an ‘object’, the duration may be set depending on the duration indicator 350 in the playback information.

For example, if the duration indicator 350 represents an ‘object’, the duration corresponds to the number of frames over which one object is fully displayed. If the duration indicator 350 represents a ‘frame’, the duration corresponds to one frame in which the object is displayed.

FIG. 7 illustrates another playlist of objects in an animated message, according to an embodiment of the present invention. FIG. 8 illustrates a method for displaying a screen on a playback frame basis in playing an animated message associated with the playlist of FIG. 7, according to an embodiment of the present invention.

The playlist shown in FIG. 7 is for when two or more frames are required for playback of each object. Referring to FIG. 7, an object #1 requires two frames, for its playback, and is continuously displayed. An object #2 requires four frames for its playback, and is erased 3 frames after it was first displayed. An object #3 requires two frames for its playback, and is repeatedly displayed, lasting over two frames. An object #4 requires three frames for its playback, and is repeatedly displayed on an object basis. In this case, the object #4 is repeatedly displayed in each of the three frames because the number of frames for the object #4 is 3. An object #5 requires three frames for its playback, and is erased after it is displayed on a one-object basis. An object #6 requires two frames for its playback, and is continuously displayed.

The objects displayed on a screen on a frame basis, the list of objects to be drawn, and the list of objects to be erased, are created, as illustrated in FIG. 8.

FIG. 9 illustrates a method for generating an animated message, according to an embodiment of the present invention.

Referring to FIG. 9, in step 910, an animated message generating apparatus receives handwritten information from a user through an input unit 120. In step 920, an animated message generator 151 generates handwritten input information (e.g., information about point coordinates, an input order, a stroke, or a color) for each object in the received handwritten information. In step 930, the animated message generator 151 sets playback information for each object having the handwritten input information. In step 940, the animated message generator 151 generates a handwriting region using an input image. In step 950, the animated message generator 151 generates information consisting of one or more codes by encoding the input information and playback information of each object, allocates the generated code information to bits predetermined in an encoding region of an animated message, and displays related blocks in the encoding region using a gray value corresponding to the bits.

In step 960, the animated message generator 151 generates an animated message including the handwriting region and the encoding region. In step 970, the animated message generator 151 transmits the generated animated message by means of the radio communication unit 110.

An animated message receiving operations at a recipient (or a receiving terminal) are opposite the operations at a sender (or a sending terminal). That is, an animated message is received through the radio communication unit 110. An animated message processor 152 in a controller 150 extracts an image in an handwriting region, extracts a bit value of each block predetermined in an encoding region, extracts a gray value corresponding to the bit value of each block, and extracts a code value of handwritten input information using the gray value. The animated message processor 152 generates playback information and input information of each object used for driving an animated message, using the extracted code values, and playing the animated message using the generated playback information and input information. If it cannot play the animated message, the animated message processor 152 displays only the image in the handwriting region on an output unit 130.

Although a method of generating an animated message using handwritten input information entered by a user on a touch screen in accordance with an embodiment of the present invention has been described so far, a method of generating an animated message by extracting information about an object(s) from an image captured using a camera unit in accordance with another embodiment of the present invention is also possible as described in detail below.

FIG. 10 illustrates a method for extracting object information from a captured image, according to an embodiment of the present invention.

Referring to FIG. 10, in step 1005, an image captured by photographing an arbitrary subject using a camera unit 170 is transferred to an image processor 160. In step 1010, an automatic object region extracting unit in the image processor 160 identifies color information of the central region of the received image, and extracts edge information from a region associated with the color information of the central region to make an edge map. Based on the color information and edge information of the central region of the image, the automatic object region extracting unit separates and extracts an optimal central region. Since a user generally takes a picture of a subject, focusing on the center of an image, the automatic object region extracting unit selects a specific region of the central portion of the image, and extracts the representative color thereof. Preferably, the extracted region is set to have a rectangular structure.

In step 1015, the automatic object region extracting unit performs region growing on one or more regions having a color that is similar to that of the extracted region. In step 1020, the automatic object region extracting unit extracts an object by extracting contour information of an object in the temporary central region. Information about the extracted object is transferred to an object region correction unit.

In step 1025, the object region correction unit extracts the optimal contour information by detecting corners of an input rectangular object. Specifically, to extract contour information, the object region correction unit extracts an interested region in a reduced region after reducing an image. The interested region is defined as the largest component in a rectangular structure. For this region, an object is extracted by image smearing extraction and labeling techniques. To extract corners from the extracted object, a search range is adjusted for only the outermost pixels detectable by a boundary extraction technique. The extracted outermost pixels and corner points located farthest from the center of the region are extracted.

In step 1030, the object region correction unit performs affine transform to correct perspective distortion in which a captured image may be tilted.

A point data extracting and animation effect extracting unit separates the object from the background by binarizing an image in the corrected interested region, in step 1035. The point data extracting and animation effect extracting unit analyzes a pattern of point data in step 1040, and extracts point data associated with the pattern in step 1045. The pattern analysis is performed based on the number of objects consisting of point data. For character data, based on the distribution of objects, the character data is divided on a line or word basis, and point data is extracted starting from the top left.

In step 1050, the point data extracting and animation effect extracting unit assigns time information to the object associated with the point data. For example, when character data is extracted, time information may be set to extract components corresponding to the handwriting order and display them on the screen.

If the number of point data objects is large, time information of the point data is provided to display various animation effects, such as, for example, a circular pattern and a random pattern, and a screen is displayed, giving the animation effects. In addition, when an animated message is generated by extracting point data of an image captured by a camera unit, an animated message may be generated by setting an object using the extracted point data and setting playback information of the object. This operation may be set to be automatically performed.

In another embodiment of the present invention, an animated message is generated by creating multiple images such that one image may be played with one frame, and including this image information in an encoding region.

In another embodiment of the present invention, in one JPEG image constituting an animated message, handwritten information (e.g., point coordinates, strokes, an input order, and/or colors) input by a user is stored in an encoding region on a frame basis.

Since objects such as point data are simplified and stored in each frame, vector operations may be used. Dynamic animation effects may be achieved by analyzing information in an encoding region on a frame basis, and sequentially displaying the frames during decoding.

If a receiving device is a device incapable of decoding, the device displays the last-frame image entered in a sending terminal.

FIG. 11 illustrates an operation of generating input images on a frame basis, according to an embodiment of the present invention.

Referring to FIG. 11, a user inputs images in a 240×240 handwriting region, frame by frame. To input images of frames displayed on screens 1110, 1120, and 1130, the user may generate the images of the frames using various ‘edit’ icons, including, for example, a ‘draw stroke’ icon 1131, an ‘open file’ icon 1134, a ‘save file’ icon 1133, a ‘go to previous/next frame’ icon 1132, and an ‘undo’ icon 1135 in an animated message input menu.

Upon completion of drawing a desired image in a frame, the user may save the frame by clicking the ‘save file’ icon 1133. To edit the next frame, the user may move to the next frame by clicking the ‘go to previous/next frame’ icon 1132 and draw an image. The user may draw a frame image by reading a stored frame by clicking the ‘open file’ icon 1134 and editing only a portion of the file to be corrected. FIG. 12 illustrates a data structure of input images, according to an embodiment of the present invention.

Referring to FIG. 12, the data structure of input images includes an entire header 1210 for storing the total amount of data and information about frames, frame headers 1220 (1220-1 to 1220-n) for storing the amount of data of each frame and information about each frame, and frame data fields 1230 (1230-1 to 1230-n) for storing input information (e.g., a stroke thickness, point coordinates, a color, and/or an input order) of each object in each frame. The number of frame headers 1220 and frame data fields 1230 equals the number of frames constructed in an animated message.

FIG. 13 illustrates an animated message, according to an embodiment of the present invention.

Referring to FIG. 13, after object input information for a previous frame 1310 is encoded, if an additional frame 1320 is stored, its object information is encoded and stored in an encoding region 1321, succeeding the encoding region in the previous frame 1310. To reduce the amount of data of a frame presently being encoded, only a difference between the current frame and the previous frame may be extracted and stored. In a storage unit of storing data input by a user on a frame basis, the amount of data may be reduced by simplifying point data input by the user in a 240×80 encoding region at the bottom of an animated message, converting the simplified data in units of objects of strokes, and encoding the converted data.

If a device having received an animated message cannot decode the received animated message, an image of the last frame may be displayed in a handwriting region.

As is apparent from the foregoing description, in addition to delivering text information or delivering image information created by a sender, the present invention generates an animated message by setting time information and playback information of objects made by individualizing the information input by the sender to deliver the sender's emotion more vividly. A recipient having received the animated message may display the message information with various animation effects by analyzing the time information and the playback information of the individual objects in the animated message.

In addition, embodiments of the present invention may extract objects, such as characters, memorandums, and pictures, not only from a handwritten image input by a user, but also from an image captured using a camera unit. Embodiments of the present invention may also generate an animated message by adding time information to the extracted objects. In this case, objects deformed due to the camera photography may be automatically corrected during object extraction.

Moreover, the present invention may generate an animated message by creating and storing handwritten inputs on a frame basis, and may separately set an encoding region in addition to a handwriting region for displaying handwritten images, and encode user's handwritten input information (object information, a playback order of objects, etc.) of each frame in the encoding region before transmission. A recipient receives the animated message, analyzes information in the encoding region on a frame basis during decoding of the animated message, and sequentially displays the frames, ensuring dynamic animation effects. In this way, a dynamic video message like the existing Graphics Interchange Format (GIF) or Flash video may be realized using a single animated message.

While the invention has been shown and described with reference to certain embodiments thereof, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims and their equivalents. 

The invention claimed is:
 1. A method for generating a message by an electronic device, comprising the steps of: receiving, by the electronic device, handwritten input comprising one or more input objects from a user; generating, by the electronic device, handwritten input information, including input times and input coordinates for each of the one or more input objects; setting, by the electronic device, playback information for the one or more input objects based on the input times; generating, by the electronic device, a handwriting region using an input image; generating, by the electronic device, code information including one or more codes by encoding the handwritten input information and the playback information for each of the one or more input objects; allocating the code information to predetermined bits in a predetermined encoding region separated from the handwriting region; generating, by the electronic device, an animation message including the handwriting region and the encoding region; and transmitting, by the electronic device, the animation message to another electronic device.
 2. The method of claim 1, wherein the handwritten input information comprises at least one of an input order of an input handwriting stroke, an attribute of the input handwriting stroke, and an input color of the input handwriting stroke.
 3. The method of claim 1, wherein each of the one or more input objects comprises at least one of a handwriting stroke, a shape, an image, and a character.
 4. The method of claim 1, wherein the playback information comprises an input order indicating an order in which the one or more input objects are entered, a region location indicating location information of each of the one or more input objects, a timeline number indicating a unique number of a reference time axis along which animation is played, a repetition indicator which is a flag indicating whether each of the one or more input objects are to be repeatedly displayed, a duration indicator indicating a unit of time, and a duration indicating a time for which each of the one or more input objects is displayed on a screen.
 5. The method of claim 1, wherein generating the handwritten input information comprises: creating, by the electronic device, a first image corresponding to the handwritten input from the user through a touch screen; recognizing the one or more input objects from the first image, and extracting the handwritten input information, including the input times and the input coordinates for each of the one or more input objects.
 6. The method of claim 1, wherein generating the handwritten input information comprises: identifying, by the electronic device, color information of a central region of a first image captured by a camera unit; extracting, by the electronic device, edge information in a region having the color information of the central region; separating and extracting, by the electronic device, a central interested region based on the color information and the edge information; extracting, by the electronic device, an object by extracting contour information of the object in the central region by performing region growing on a region having a color similar to that of the central interested region; detecting, by the electronic device, corners by extracting boundaries of the object; performing, by the electronic device, affine transform on the object; extracting, by the electronic device, an input object by separating the input object from a background by first binarizing the image; and generating, by the electronic device, the input time of the input object.
 7. The method of claim 6, wherein the central region is rectangular.
 8. The method of claim 1, wherein the encoding region is located under the handwriting region.
 9. The method of claim 1, wherein generating the code information comprises: converting, by the electronic device, the handwritten input information into one or more code values; mapping, by the electronic device, the one or more code values to each of a plurality of blocks in the encoding region; and changing, by the electronic device, a level of a gray value of each of the plurality of blocks according to a bit value of a respective code value.
 10. The method of claim 9, wherein the gray value is expressed in 4 levels capable of displaying 2-bit values, or in 8 levels capable of displaying 3-bit values.
 11. A method for displaying a message by an electronic device, comprising the steps of: receiving, by the electronic device, an animation message, from another electronic device; dividing the animation message into a handwriting region and an encoding region; determining, by the electronic device, bit values mapped according to gray values of respective blocks in the encoding region; determining, the electronic device, handwritten input information, including input times and input coordinates for each of one or more objects included in the animation message, and playback information, including playback orders of the one or more objects, according to the bit values; and displaying, by the electronic device, the one or more objects according to the handwritten input information and the playback information.
 12. The method of claim 11, wherein displaying the one or more objects comprises: generating, by the electronic device, an object playlist representing playback information of an object associated with a frame using the playback information; generating, by the electronic device, a list of objects to be drawn on a frame basis, and a list of objects to be erased on a frame basis, according to the object playlist; and displaying, by the electronic device, an animation message using the list of objects to be drawn and the list of objects to be erased.
 13. The method of claim 11, wherein the handwritten input information comprises at least one of an input order of an input handwriting stroke, an attribute of the input handwriting stroke, and an input color of the input handwriting stroke.
 14. The method of claim 11, wherein each of the one or more objects comprises at least one of a handwriting stroke, a shape, an image, and a character.
 15. The method of claim 11, wherein the playback information comprises an input order indicating an order in which a plurality of objects are entered, a region location indicating location information of each of the plurality of objects, a timeline number indicating a unique number of a reference time axis along which animation is played, a repetition indicator which is a flag indicating whether each of the plurality of objects is to be repeatedly displayed, a duration indicator indicating a unit of time, and a duration indicating a time for which each of the plurality of objects is displayed on the screen.
 16. An electronic device for generating a message, comprising: a communication unit; an input unit configured to receive a handwritten input comprising one or more input objects from a user; and a controller configured to: generate handwritten input information including input times and input coordinates of each of the one or more input objects, set playback information including a playback order for the one or more input objects based on the input times, generate a handwriting region using an input image, generate code information including one or more codes by encoding the handwritten input information and the playback information for each of the one or more input objects, allocate the code information to predetermined bits in a predetermined encoding region separated from the handwriting region, generate an animation message including the handwriting region and the encoding region, and control the communication unit to transmit the animation message to another electronic device.
 17. The electronic device of claim 16, wherein the handwritten input information comprises at least one of an input order of an input handwriting stroke, an attribute of the input handwriting stroke, and an input color of the input handwriting stroke.
 18. The electronic device of claim 16, wherein the one or more objects comprise at least one of a handwriting stroke, a shape, an image, and a character.
 19. The electronic device of claim 16, wherein the playback information comprises an input order indicating an order in which the one or more input objects are entered, a region location indicating location information of each of the one or more input objects, a timeline number indicating a unique number of a reference time axis along which animation is played, a repetition indicator which is a flag indicating whether each of the one or more input objects are to be repeatedly displayed, a duration indicator indicating a unit time, and a duration indicating a time for which each of the one or more input objects is displayed on a screen.
 20. The electronic device of claim 16, wherein the controller creates an image corresponding to the handwritten input from the user through a touch screen, recognizes the one or more input objects from the image, and extracts the handwritten input information including the input times and the input coordinates for each of the one or more input objects.
 21. The electronic device of claim 16, further comprising: a camera unit configured to photograph a subject to generate an image; and wherein the controller identifies color information of a central region of the image, extracts edge information in a region having the color information of the central region, separates and extracts a central interested region based on the color information and the edge information, extracts an object by extracting contour information of the object in the central region by performing region growing on a region having a color similar to that of the central interested region, detects corners by extracting boundaries of the object, performs affine transform on the object, extracts the input object by separating the input object from a background by binarizing the image, and generates an input time of the input object.
 22. The electronic device of claim 21, wherein the central region is rectangular.
 23. The electronic device of claim 16, wherein the encoding region is located under the handwriting region.
 24. The electronic device of claim 16, wherein the controller converts the handwritten input information into one or more code values, maps the one or more code values to each of a plurality of blocks in the encoding region, and changes a level of a gray value of each of the plurality of blocks according to a bit value of a respective code value.
 25. The electronic device of claim 24, wherein the gray value is expressed in 4 levels capable of displaying 2-bit values, or in 8 levels capable of displaying 3-bit values.
 26. The electronic device of claim 16, wherein upon receiving another animation message, the controller extracts another image in a handwriting region of the another animation message, extracts bit values mapped according to gray values of respective blocks in an encoding region of the another animation message, generates the handwritten input information and the playback information of each of a plurality of objects in the another animation message according to the extracted bit values, the handwritten input information including input times and input coordinates of each of the plurality of objects in the animation message, the playback information including a playback order of the plurality of objects, and plays the animation message according to the handwritten input information and the playback information. 